﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace Component
{
    public class FileManagement
    {
        public static FileInfo[] GetAllFileImg(string pathDirectory)
        {

            DirectoryInfo dir = new DirectoryInfo(pathDirectory);
            if (dir.Exists == true)
            {
                return dir.GetFiles();
            }
            return null;
        }
    }
}
